# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=passt
pkgver=2024.04.26
_commit=d03c4e2
_tag=${pkgver//./_}.$_commit
pkgrel=1
pkgdesc="Plug a simple socket transport"
url="https://passt.top/"
arch="all"
license="BSD-3-Clause AND GPL-2.0-or-later"
makedepends="coreutils-fmt linux-headers"
subpackages="$pkgname-doc"
source="https://passt.top/passt/snapshot/passt-$_tag.tar.gz"
builddir="$srcdir/$pkgname-$_tag"
# complicated test setup, requires qemu and a lot of VM images
options="!check"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
	install -Dm644 LICENSES/*.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="
7e39aeb46d57b5409e101506972606505eae8b57e55b47e7cc544879c65d6b70416983c2eaf00bcd1a972b8c9bbd8ac816bdbfb07091f048e2e6ca39f35fe918  passt-2024_04_26.d03c4e2.tar.gz
"
